<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <body>

        <ui:composition template="./common/accountLayout.xhtml">

            <ui:define name="title">
                enregistrement  page 2
            </ui:define>

            <ui:define name="top">
                <h:outputText value="Votre identité"/>
            </ui:define>

            <ui:define name="content">
                <h:form>
            <h:panelGrid columns="3" width="70%" border="0">
                <h:outputLabel value="prénom : "/>
                <h:inputText id="firstnameid" required="true" value="#{memberModel.firstname}"/>
                <h:message for="firstnameid"/>

                <h:outputLabel value="nom : "/>
                <h:inputText id="lastnameid" required="true" value="#{memberModel.lastname}"/>
                <h:message for="lastnameid"/>

                <h:outputLabel value="date de naissance : "/>
                <h:inputText id="dobid" required="true" value="#{memberModel.dob}">
                <!--convertisseur de date-->
                <f:convertDateTime dateStyle="short"/>
                </h:inputText>
                <h:message for="dobid"/>

                 <f:verbatim>&nbsp;</f:verbatim>

                <h:panelGroup><!--boutons groupés-->
                    <h:commandButton value="finaliser" action="finalize" /><!--nanvigation statique explicite-->
                    <f:verbatim>&nbsp;&nbsp;</f:verbatim><!--pour positionner-->
                    <h:commandButton value="annuler" immediate="true" action="#{memberModel.cancelAccountCreation}" />
                </h:panelGroup>
            </h:panelGrid>
           </h:form>
            </ui:define>

        </ui:composition>

    </body>
</html>
